
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>还款申请单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">还款申请单</h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action="" class="form-inline" id="form1">
       <table class="row-margin-top tab-content table-bordered table" border="1">
        <tr>
          <td colspan="6"><a href="javascript:;" class="btn btn-sm btn-primary" id="addreturnMApply">新增还款申请</a><span class="lr_5"></span><button type="button" class="btn btn-sm btn-success" data-toggle="modal" data-target=".bs-example-modal-lg">查看我的借款余额</button></td>
        </tr>
          <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">编号：</label></td>
            <td><input type="text" class="form-control" name=""></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请状态：</label></td>
            <td>
              <select name="" id="" class="form-control select">
                   <option value="0">请选择</option>
                        <option value="1">已打回</option>
                        <option value="2">拆分人审批</option>
                        <option value="3">集团领导审批</option>
                        <option value="4">抄送</option>
                        <option value="5">已归档</option>
                        <option value="6">已作废</option>
                        <option value="7">已否决</option>
                         <option value="8">草稿</option>
                         <option value="9">部门经理审批</option>
              </select>
            </td>
           <td style="min-width: 120px;width: 120px"><label for="" class="form-label">确认状态：</label></td>
            <td>
             <select name="" id="" class="form-control select">
                <option value="0">请选择</option>
                <option value="1">未确认</option>
                <option value="2">已确认</option>
                <option value="3">未收到还款</option>
              </select>
            </td>
    </tr>
        <tr>
          <td><label for="" class="form-label">申请日期：</label></td>
            <td>
            从
             <div class="form-group">
            <input type="text" id="start" class="form-control layer-date " style="min-width:120px;width: 120px;display: inline-block;" name="">
           </div>
            <div class="form-group">
               到
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date" style="min-width:120px;width: 120px;display: inline-block;" id="end" name="">
           </div>
            </td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">还款日期：</label></td>
            <td colspan="3">
            从
             <div class="form-group">
            <input type="text" id="start1" class="form-control layer-date " style="min-width:120px;width: 120px;display: inline-block;" name="">
           </div>
            <div class="form-group">
               到
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date" style="min-width:120px;width: 120px;display: inline-block;" id="end1" name="">
           </div>
            </td>
          </tr>
          <tr>
            <td colspan="6" class="text-center">
                <button class="btn btn-info btn-sm query" >查询</button>
           <button class="btn btn-info btn-sm emptyIf" type="reset" id="reset">清空查询条件</button>
            </td>
          </tr>
      </table>
    
      <table class="table table-striped table-bordered table-hover bud_hei text-center">
         </tr>
           <tr class="info">
            <th class="text-center">NO.</th>
            <th class="text-center">编号</th>
            <th class="text-center">申请人</th>
            <th class="text-center trTotal2">还款人</th>
            <th class="text-center trTotal2">申请日期</th>
            <th class="text-center trTotal2">还款金额(元)</th>
            <th class="text-center trTotal2">还款时借款余额(元)</th>
            <th class="text-center">申请单状态</th>
            <th class="text-center">确认状态</th>
            <th class="text-center trTotal2">还款日期</th>
            <th class="text-center">操作</th>
          </tr>
       <!--   	<tr>
				<td>1</td>
				<td><a class="J_menuItem" href="{:url('Other/borrowMDetail')}">201502230002</a></td>
       	<td>蔡启豪</td>
       	<td>蔡启豪</td>
				<td>2017-11-11</td>
        <td class="text-right ObjectNum">2000</td>
        <td class="text-right ObjectNum">2000</td>
        <td>草稿</td>
        <td>未支付</td>
				<td>2017-11-11</td>
				<td><a href="javascript:;">提交工作流</a>&nbsp;<a href="javascript:;" class="modify">修改</a>&nbsp;<a href="javascript:;" class="del_this">删除</a></td>
        </tr>
          <tr>
        <td>2</td>
        <td><a class="J_menuItem" href="{:url('Other/borrowMDetailsp')}">201502230002</a></td>
        <td class="font-bold">蔡启豪<span class="glyphicon glyphicon-ok duigou" title="已生效" aria-hidden="true"></span></td>
        <td>蔡启豪</td>
        <td>2017-11-11</td>
        <td class="text-right ObjectNum">2000</td>
        <td class="text-right ObjectNum">2000</td>
        <td>草稿</td>
        <td>未支付</td>
        <td>2017-11-11</td>
        <td><a href="javascript:;">查看流程图</a></td>
        </tr> -->
      </table>
      <!--  <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
                    总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
                    每页显示
                    <select id="pagesize">
                        <option value='10' selected>10条</option>
                        <option value='15'>15条</option>
                        <option value='20'>20条</option>

                    </select>
                </h5> -->
</form>
    </div>
    <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content" style="height: 60px;font-size: 20px">
      我的借款余额：100.00元
    </div>
  </div>
</div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
      <script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
       <script src="__STATIC__/layout/js/contabs_sub.js"></script>
    <script src="__STATIC__/layout/js/common.js"></script>
    <script>
      
        //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
            //日期范围限制
        var start1 = {
            elem: '#start1',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end1.min = datas; //开始日选好后，重置结束日的最小日期
                end1.start1 = datas //将结束日的初始值设定为开始日
            }
        };
        var end1 = {
            elem: '#end1',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start1.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
         laydate(start1);
        laydate(end1);
        $(document).ready(function(){
          var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);
        })

      $("#addreturnMApply").click(function(){
         layer.open({
                type: 2,
                title: '新增还款申请',
                 area: ['1200px', '600px'],
                fixed: false, //不固定
                maxmin: true,
                content: "{:url('Other/addreturnMApply')}"
            });
            return false
      })
      $(".modify").click(function(){
         layer.open({
                type: 2,
                title: '修改借款申请',
                 area: ['1200px', '600px'],
                fixed: false, //不固定
                maxmin: true,
                content: "{:url('Other/addBorrowMApply')}"
            });
            return false
      })
         $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })

      /*删除*/
       $(document).on("click",".del_this",function() {
      
                swal({
                            title: "提示",
                            text: "您确定要删除此条信息吗？",
                            type: "warning",
                            showCancelButton: true,
                            confirmButtonColor: "#FF3333",
                            confirmButtonText: "确定",
                            cancelButtonText: "取消",
                            closeOnConfirm: true
                        })
                        // function (isConfirm) {
                        //   if (isConfirm) {
                        //    //alert(cid);
                        //     $.post("/salls/public/index.php/index/productsseries/dropser.html",{sid:sid},function(re){
                        //       //alert(re);
                        //         if(re==1){
                        //             swal({
                        //             title: "完成",
                        //             text:  "系列已删除",
                        //             type: "success"
                        //             },function(){
                        //                 location.href='/salls/public/index.php/index/productsseries/series.html';
                                        
                        //             });
                        //         }else{
                        //              swal({
                        //             title: "错误",
                        //             text:  "系统繁忙请稍后再试",
                        //             type: "warning"
                        //             });
                        //         }
                        //     })
                        // }
                        // })
        });

    </script>
</body>

</html>
